﻿#include <iostream>
using namespace std;
void func(int** pp)
{
	*pp = new int(3);
	cout << "pp" << pp << ",*pp=" << *pp << endl;
}
int main()
{
	/*int* p = new int(3);*/
	int* p = 0;
	func(&p);
	/*{
		int** pp = &p;
		*pp = new int(3);
		cout << "pp" << pp << ",*pp=" << *pp << endl;
	}*/
	cout << "p=" << p << ",*p=" << *p << endl;
}

